<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>EnvGet</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link href="../static/theme.css" rel="stylesheet" type="text/css" />
<script src="../static/content.js" type="text/javascript"></script>
</head>
<body>

<h1>EnvGet <span class="ver">[v1.0.43.08+]</span></h1>

<p>Retrieves an environment variable.</p>

<pre class="Syntax">EnvGet, OutputVar, EnvVarName</pre>
<h3>Parameters</h3>
<dl>

  <dt>OutputVar</dt>
  <dd><p>The name of the variable in which to store the string.</p></dd>

  <dt>EnvVarName</dt>
  <dd><p>The name of the <a href="../Variables.htm#env">environment variable</a> to retrieve. For example: <code>EnvGet, OutputVar, Path</code>.</p></dd>

</dl>
<h3>Remarks</h3>
<p>If the specified environment variable is empty or does not exist, <em>OutputVar</em> is made blank.</p>
<p>The operating system limits each environment variable to 32 KB of text.</p>
<h3>Related</h3>
<p><a href="EnvSet.htm">EnvSet</a>, <a href="_NoEnv.htm">#NoEnv</a>, <a href="../Variables.htm#env">environment variables</a>, <a href="EnvUpdate.htm">EnvUpdate</a>, <a href="SetEnv.htm">SetEnv</a>, <a href="Run.htm">Run</a>, <a href="Run.htm">RunWait</a></p>
<h3>Example</h3>
<pre class="NoIndent">EnvGet, OutputVar, LogonServer</pre>

</body>
</html>
